package com.xf.lastmall.moudle.entity;


import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by wangzhaoqian5 on 2018/6/6.
 */
@Entity
@Data
public class OrderRefundEntity implements Serializable {

    /*
    * ID_` varchar(32) NOT NULL COMMENT 'ID',
  `mall_code_` varchar(20) DEFAULT NULL COMMENT '项目编码',
  `refund_type_` varchar(2) DEFAULT NULL COMMENT '退款单类型[团购/秒杀/活动]',
  `refund_no_` varchar(20) DEFAULT NULL COMMENT '退款单号',
  `order_sub_no_` varchar(20) DEFAULT NULL COMMENT '订单号',
  `refund_amount_` decimal(18,2) DEFAULT NULL COMMENT '退款金额',
  `status_` varchar(2) DEFAULT NULL COMMENT '状态',
  `member_id_` varchar(32) DEFAULT NULL COMMENT '用户ID',
  `member_name_` varchar(50) DEFAULT NULL COMMENT '用户名称',
  `source_` varchar(2) DEFAULT NULL COMMENT '来源[ios:IOS/android:安卓/wechat:公众号/wxa:小程序]',
  `channel_` varchar(1) DEFAULT NULL COMMENT '支付通道[一点万象支付通道/聚合支付通道]',
  `finish_time_` datetime DEFAULT NULL COMMENT '退款完成时间',
  `create_time_` datetime DEFAULT NULL,
  `update_time_` datetime DEFAULT NULL,
  `refund_reason_` varchar(127) DEFAULT NULL,
  `refund_numb_` smallint(6) DEFAULT NULL,*/
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private String id;
    private String mallCode;
    private String refundType;
    private String refundNo;
    private String orderSubNo;
    private String status;
    private BigDecimal refundAmount;
    private String memberId;
    private String memberName;
    private String refundReason;
    private Date createTime;
    private Date updateTime;
    private Date finishTime;
    private int refundNumb;
    private String channel;
    private String orderNo;
    private String reTradeNo;
    private String source;
    private  int delete;

    /**
     * 是否过期不可退类型的退款，不记录
     * 0-否，1-是
     */
    private int ifExpired;
    /**
     * 一个订单多次退款
     */
    private String batchNo;
    /**
     * 审核人id
     */
    private String auditBy;
    /**
     * 审核人名称
     */
    private String auditName;
    /**
     * 审核时间
     */
    private Date auditTime;
   /**
    * 审批备注
	 */
    private String auditRemark;

    /**
     * 出纳id
     */
    private String cashierBy;
    /**
     * 出纳名称
     */
    private String cashierName;
    /**
     * 出纳审核时间
     */
    private Date cashierTime;
    /**
     * 出纳备注
     */
    private String cashierRemark;

    /**
     * 复审(二审)人id
     */
    private String reviewBy;
    /**
     * 复审(二审)人名称
     */
    private String reviewName;
    /**
     * 复审(二审)审核时间
     */
    private Date reviewTime;
    /**
     * 复审(二审)备注
     */
    private String reviewRemark;

    private int commodityType; //商品类型

    private String orderType;
    private int saleWay;

    private BigDecimal usedPayDiscountAmount;// 退货退款使用的支付优惠金额
    private BigDecimal mchtDiscountAmount;// 商户出资优惠金额

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public int getSaleWay() {
        return saleWay;
    }

    public void setSaleWay(int saleWay) {
        this.saleWay = saleWay;
    }

    public int getCommodityType() {
        return commodityType;
    }

    public void setCommodityType(int commodityType) {
        this.commodityType = commodityType;
    }

    public String getBatchNo() {
        return batchNo;
    }

    public void setBatchNo(String batchNo) {
        this.batchNo = batchNo;
    }

    public int getDelete() {
        return delete;
    }

    public void setDelete(int delete) {
        this.delete = delete;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }
    public String getReTradeNo() {
        return reTradeNo;
    }

    public void setReTradeNo(String reTradeNo) {
        this.reTradeNo = reTradeNo;
    }

    public String getAuditBy() {
        return auditBy;
    }

    public void setAuditBy(String auditBy) {
        this.auditBy = auditBy;
    }

    public String getAuditName() {
        return auditName;
    }

    public void setAuditName(String auditName) {
        this.auditName = auditName;
    }

    public Date getAuditTime() {
        return auditTime;
    }

    public void setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
    }

    public String getAuditRemark() {
        return auditRemark;
    }

    public void setAuditRemark(String auditRemark) {
        this.auditRemark = auditRemark;
    }

    public String getCashierBy() {
        return cashierBy;
    }

    public void setCashierBy(String cashierBy) {
        this.cashierBy = cashierBy;
    }

    public String getCashierName() {
        return cashierName;
    }

    public void setCashierName(String cashierName) {
        this.cashierName = cashierName;
    }

    public Date getCashierTime() {
        return cashierTime;
    }

    public void setCashierTime(Date cashierTime) {
        this.cashierTime = cashierTime;
    }

    public String getCashierRemark() {
        return cashierRemark;
    }

    public void setCashierRemark(String cashierRemark) {
        this.cashierRemark = cashierRemark;
    }

    public String getReviewBy() {
        return reviewBy;
    }

    public void setReviewBy(String reviewBy) {
        this.reviewBy = reviewBy;
    }

    public String getReviewName() {
        return reviewName;
    }

    public void setReviewName(String reviewName) {
        this.reviewName = reviewName;
    }

    public Date getReviewTime() {
        return reviewTime;
    }

    public void setReviewTime(Date reviewTime) {
        this.reviewTime = reviewTime;
    }

    public String getReviewRemark() {
        return reviewRemark;
    }

    public void setReviewRemark(String reviewRemark) {
        this.reviewRemark = reviewRemark;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMallCode() {
        return mallCode;
    }

    public void setMallCode(String mallCode) {
        this.mallCode = mallCode;
    }

    public String getRefundType() {
        return refundType;
    }

    public void setRefundType(String refundType) {
        this.refundType = refundType;
    }

    public String getRefundNo() {
        return refundNo;
    }

    public void setRefundNo(String refundNo) {
        this.refundNo = refundNo;
    }

    public String getOrderSubNo() {
        return orderSubNo;
    }

    public void setOrderSubNo(String orderSubNo) {
        this.orderSubNo = orderSubNo;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public BigDecimal getRefundAmount() {
        return refundAmount;
    }

    public void setRefundAmount(BigDecimal refundAmount) {
        this.refundAmount = refundAmount;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getRefundReason() {
        return refundReason;
    }

    public void setRefundReason(String refundReason) {
        this.refundReason = refundReason;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(Date finishTime) {
        this.finishTime = finishTime;
    }

    public int getRefundNumb() {
        return refundNumb;
    }

    public void setRefundNumb(int refundNumb) {
        this.refundNumb = refundNumb;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public BigDecimal getUsedPayDiscountAmount() {
        return usedPayDiscountAmount;
    }

    public void setUsedPayDiscountAmount(BigDecimal usedPayDiscountAmount) {
        this.usedPayDiscountAmount = usedPayDiscountAmount;
    }

    public BigDecimal getMchtDiscountAmount() {
        return mchtDiscountAmount;
    }

    public void setMchtDiscountAmount(BigDecimal mchtDiscountAmount) {
        this.mchtDiscountAmount = mchtDiscountAmount;
    }

    public int getIfExpired() {
        return ifExpired;
    }

    public void setIfExpired(int ifExpired) {
        this.ifExpired = ifExpired;
    }
}
